var InformDetails = {
	inform_id: fnBase.splitURL()['inform_id'],
	user_id: fnBase.splitURL()['user_id'],
	user_name: fnBase.splitURL()['user_name'],
	user_img: fnBase.splitURL()['user_img'],
	page: 1,
	replyThis:{},
	//hackBug:true,

	//初始化事件
	init: function() {
		/*this.GetInformInfo(); //帖子内容*/
		this.AddEvent(); //事件
		this.forAddEvent();
		//this.commentList();
	},
	//初始化点击事件委托
	initClick: function(e) {
		var list = document.getElementById('InformReplyList');
		var boxs = list.children;
		var boxsLength = boxs.length;
		for(var i = 0; i < boxsLength; i++) {
			boxs[i].onclick = function(e) {
				e = e || window.event;
				var el = e.srcElement ? e.srcElement : e.target;
				switch(el.className) {
					case 'imgto-individual':
						//点评论头像去个人简介
						InformDetails.goIndividual(el);
						break;
					case 'nameto-individual':
						//点名字去个人
						InformDetails.goIndividual(el);
						break;
					case 'replynick-go-individual':
						//被回复昵称去个人
						InformDetails.goIndividual(el);
						break;
					case 'nick-go-individual':
						//回复昵称去个人
						InformDetails.goIndividual(el);
						break;
					case 'second-reply':
						//三级回复
						InformDetails.setUpTextareaBox(el);
						break;
					case 'post-comments-txt':
						//二级回复
						InformDetails.setUpTextareaBox(el);
						break;
				}
			};
		}
	},
	//获取帖子内容
	/*GetInformInfo: function() {
		var loadingMask = document.getElementById('cssload');
		var BoxWrap = document.getElementById('pullrefresh');
		var oInput= document.getElementById('post_input');
		$.ajax({
			type: "POST",
			url: fnBase.api.Info_InformInfo,
			dataType: "JSON",
			data: {
				"inform_id": InformDetails.inform_id, //文章ID
				"user_id": InformDetails.user_id,
			},
			success: function(data) {
				//console.log(data);
				if(data.code == 0) {
					var datal = data.data;
					var str = '',comNum = '';
					var collect = datal.is_collect == 1 ? '<li class="add-collect-after"><img src="images/major-collect.png"/></li>':'<li class="add-collect"><img src="images/collect.png"/></li>';
					var isLaud = datal.is_laud == 1 ? '<img class="addLaud" src="images/d-like.png"/>' : '<img class="addLaud" src="images/d-like-After.png"/>';
					var isTag=datal.tag?'<span class="title-span">' + datal.tag + '</span>':'';
					str = '<dl class="post-top"><dt class="post-top-title">'+ datal.title + '</dt>' +
						'<dd class="post-top-time"><span>' + datal.add_time + '</span>'+isTag+
						'<span class="inform-top-img"><img src="images/read.png"/> ' + datal.assess + '</span></dd></dl>' +
						'<div id="data-preview-banner"  class="inform-center-txt">' + datal.content + '</div>' +
						'<dl class="post-center-praised"><dt>' + isLaud + '</dt>' +
						'<dd><span id="laudnum">' + datal.laud + '</span>&nbsp;人点赞</dd></dl>';
					comNum = '<li class="post-commentnum">全部评论(' + datal.reply + ')</li>';
					$('.post-cont-nav').html(comNum);
					loadingMask.parentNode.removeChild(loadingMask);
					$('#informTop').append(collect);
					$('#informshare').before(str);
					BoxWrap.style.display = "block";
					oInput.style.display="block";
					mui.previewImage();
				} else {
					fnBase.toast(data.msg);
					fnBase.deletetext();
					loadingMask.parentNode.removeChild(loadingMask);
					BoxWrap.style.display = "none";
					oInput.style.display="none";
				}
			},
			error: function() {
				fnBase.toast('网络不通畅');
				loadingMask.parentNode.removeChild(loadingMask);
				fnBase.linkError();
				BoxWrap.style.display = "none";
				oInput.style.display="none";
			},

		});
	},*/
	AddEvent: function() {
		//点击返回
		$('#goBack').on('click',function() {
			if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
				 GoBack();
			} else if(fnBase.versions.android) {
				window.myObj.goBack();
			}
			
		});
		//点击分享大分享
		$('#btn_share').on('click',function(){
			if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
					showShareBoard();
			} else if(fnBase.versions.android) {
					window.myObj.Share();
			}
		});
		//点赞ng
		/*$('#InformContBox').on('click', '.addLaud', function() {
			if(!fnBase.isLogin(InformDetails.user_id)) {
				//fnBase.toast('亲！您未登陆');
				if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
				GoToLogin();
			} else if(fnBase.versions.android) {
				window.myObj.toLogin();
			}
				
				return false;
			};
			var _this = $(this);
			var sendData = {
				"user_id": InformDetails.user_id,
				"inform_id": InformDetails.inform_id
			};
			fnBase.commonAjax(fnBase.api.Info_InformLaud, sendData, function(data) {
				if(data.code == 0) {
					_this.attr("src", "images/d-like.png");
					var zanNum = parseInt($('#laudnum').html()) + 1;
					$('#laudnum').html(zanNum);
					var oBox = document.createElement('p');
					oBox.className = 'special_effects';
					oBox.style.display = 'block';
					oBox.innerHTML = '+1';
					_this.parent().append(oBox);
					oBox.addEventListener('webkitAnimationEnd', onOff);

					function onOff() {
						oBox.style.display = 'none';
					}
				} else {
					fnBase.toast(data.msg);
				}
			});
		});*/
		//收藏
		$('#informTop').on('click','.add-collect',function(){
			if(!fnBase.isLogin(InformDetails.user_id)) {
				//fnBase.toast('亲！您未登陆');
				if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
				GoToLogin();
			} else if(fnBase.versions.android) {
				window.myObj.toLogin();
			}
				return false;
			};
			var _this = $(this);
			var sendData = {
				"user_id": InformDetails.user_id,
				"inform_id": InformDetails.inform_id
			};
			fnBase.commonAjax(fnBase.api.Info_InformCollect, sendData, function(data) {
				if(data.code == 0) {
					_this.removeClass('add-collect').addClass('add-collect-after');
					_this.html('<img src="images/major-collect.png"/>');
					fnBase.toast('收藏成功');
				} 
			});
		});
		$('#informTop').on('click','.add-collect-after',function(){
			if(!fnBase.isLogin(InformDetails.user_id)) {
				//fnBase.toast('亲！您未登陆');
				if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
				GoToLogin();
			} else if(fnBase.versions.android) {
				window.myObj.toLogin();
			}
				return false;
			};
			var _this=$(this);
			 var sendData = {"user_id":InformDetails.user_id,"inform_id":InformDetails.inform_id};
			 fnBase.commonAjax(fnBase.api.Info_InformCollectCancel,sendData,function(data){
			 	if(data.code==0){
			 		_this.removeClass('add-collect-after').addClass('add-collect');
					_this.html('<img src="images/collect.png"/>');
					fnBase.toast('取消收藏');
				}
			 });
		});
		//唤起真输入框并隐藏假输入框
		$('#arouse_input').on('click', function() {
			var el = $(this);
			InformDetails.setUpTextareaBox(el);
		});
		//点沙发唤起输入框
		$('#notcom').on('click', function() {
			var el = $(this);
			InformDetails.setUpTextareaBox(el);
		});
		$('#informshare').on('click', '.post-share-weixin', function() {
			var nowTime = new Date().getTime();
			var myThis=$(this);
    		var clickTime =myThis.attr("ctime");
			if( clickTime != 'undefined' && (nowTime - clickTime < 5000)){
      				 fnBase.toast('操作过于频繁，稍后再试');
     			  return false;
    		}else{
     			myThis.attr("ctime",nowTime);
     		}
			if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
				 sharedToWechat();
			} else if(fnBase.versions.android) {
				window.myObj.ShareWeixin();
			}
		}).on('click', '.post-share-Timeline', function() {
			var nowTime = new Date().getTime();
			var myThis=$(this);
    		var clickTime =myThis.attr("ctime");
			if( clickTime != 'undefined' && (nowTime - clickTime < 5000)){
      				 fnBase.toast('操作过于频繁，稍后再试');
     			  return false;
    		}else{
     			myThis.attr("ctime",nowTime);
     		}
			if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
				sharedToWechatTimeLine();
			} else if(fnBase.versions.android) {
				window.myObj.ShareWeixinCircle();
			}
			
		}).on('click', '.post-share-weibo', function() {
			var nowTime = new Date().getTime();
			var myThis=$(this);
    		var clickTime =myThis.attr("ctime");
			if( clickTime != 'undefined' && (nowTime - clickTime < 5000)){
      			fnBase.toast('操作过于频繁，稍后再试');
     			return false;
    		}else{
     			myThis.attr("ctime",nowTime);
     		}
			if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
				sharedToWeibo();
			} else if(fnBase.versions.android) {
				window.myObj.ShareSina();
			}
		}).on('click', '.post-share-Zone', function() {
			var nowTime = new Date().getTime();
			var myThis=$(this);
    		var clickTime =myThis.attr("ctime");
			if( clickTime != 'undefined' && (nowTime - clickTime < 5000)){
      				 fnBase.toast('操作过于频繁，稍后再试');
     			  return false;
    		}else{
     			myThis.attr("ctime",nowTime);
     		}
			if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
				sharedToQQZone();
			} else if(fnBase.versions.android) {
				window.myObj.ShareZone();
			}
		}).on('click', '.post-share-qq', function() {
			var nowTime = new Date().getTime();
			var myThis=$(this);
    		var clickTime =myThis.attr("ctime");
			if( clickTime != 'undefined' && (nowTime - clickTime < 5000)){
      				 fnBase.toast('操作过于频繁，稍后再试');
     			  return false;
    		}else{
     			myThis.attr("ctime",nowTime);
     		}
			if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
				 sharedToQQ();

			} else if(fnBase.versions.android) {
				window.myObj.ShareQQ();
			}
		});
		
	},
	//多次事件
	forAddEvent: function() {
		//评论点赞
		$('#InformReplyList').bind('click').on('click', '.praise-btn', function() {
			var _this = $(this);
			//console.log(_this);
			InformDetails.CommentsAddLaud(_this);
		});
		//点回复数 评论
		$('#InformReplyList').bind('click').on('click', '.comment-btn', function() {
			var el = $(this);
			InformDetails.setUpTextareaBox(el);
			//console.log(_this);
		});
		$('#InformReplyList').bind('click').on('click', '.post-comments-function', function() {
			var _this = $(this);
			InformDetails.commentsReply(_this);
		});
	},
	commentList: function() {
		var URL = fnBase.api.Info_InformReplayInfo;
		console.log(InformDetails.page);
		var sendData = {
			"inform_id": InformDetails.inform_id,
			"user_id": InformDetails.user_id,
			"page": InformDetails.page,
		}
		fnBase.commonAjax(URL, sendData, function(data) {
			var $comment = data.data;
			if($comment.length != 0) {
				for(var i = 0; i < $comment.length; i++) {
					var reply = $comment[i].reply.data;
					var twocommentStr = '',
						IMG = '';
					if(reply !== null && reply.length) {
						for(var k = 0; k < reply.length; k++) {
							// 回复一楼第一状态2-1 名：user_id!=被回复user_id 同时，父几id相等;//一楼回复自己  第三状态 1-1 名 user_id =被回复user_id 父几id相等
							if(reply[k].reply_user_id == $comment[i].user.id && reply[k].parent_id == $comment[i].id) {
								twocommentStr += '<div class="post-comments-child">' +
									'<p source_id="3" user_name="' + reply[k].nick + '" user_id="' + reply[k].user_id + '" inform_reply_id="' + $comment[i].id + '" class="second-reply"><span class="nick-go-individual" user_id="' + reply[k].user_id + '">' + reply[k].nick + '：</span>' +
									reply[k].content + '</p>' +
									'</div>';
								//一楼回复二楼  第二状态 1-2 回名 user_id!=被回复user_id 父userid =user_id;
							} else if(reply[k].user_id == $comment[i].user.id && reply[k].parent_id != $comment[i].id) {
								twocommentStr += '<div class="post-comments-child">' +
									'<p source_id="3" user_name="' + reply[k].nick + '" user_id="' + reply[k].user_id + '" inform_reply_id="' + $comment[i].id + '" class="second-reply"><span class="spancolor">回复</span>' +
									'<span user_id="' + reply[k].reply_user_id + '" class="replynick-go-individual">' + reply[k].reply_nick + '：</span>' +
									reply[k].content + '</p>' +
									'</div>';

							} else {
								//其他回复二楼 第四状态3-2 名回明
								twocommentStr += '<div class="post-comments-child">' +
									'<p source_id="3" user_name="' + reply[k].nick + '" user_id="' + reply[k].user_id + '" inform_reply_id="' + $comment[i].id + '" class="second-reply"><span user_id="' + reply[k].user_id + '"  class="nick-go-individual">' + reply[k].nick + '</span>' +
									'<span class="spancolor">回复</span><span user_id="' + reply[k].reply_user_id + '" class="replynick-go-individual">' + reply[k].reply_nick + '：</span>' +
									reply[k].content + '</p>' +
									'</div>';
							}
						}
					}
					if(fnBase.isLogin($comment[i].user.img)) {
						IMG = $comment[i].user.img;
					} else {
						IMG = 'images/user_img.png';
					}
					var myBorder=(reply !== null && reply.length)?'com-bor':'';
					var isLaud = $comment[i].is_laud == 1 ? '<img src="images/icon-zan-After.png"/>' : '<img src="images/icon-zan.png"/>';
					var moreReplyPlus = $comment[i].reply.plus > 0 ? '<ul page="1" user_id="' + $comment[i].user.id + '" inform_reply_id="' + $comment[i].id + '" class="post-comments-function"><li class="comments-Reply">更多<span>' + $comment[i].reply.plus + '</span>条评论</li></ul>' : '';
					var $commentStr = '<div class="post-cont">' +
						'<ul class="post-cont-user"><li><img user_id="' + $comment[i].user.id + '" class="imgto-individual" src="' + IMG + '"/></li>' +
						'<li><p user_id="' + $comment[i].user.id + '" class="nameto-individual">' + $comment[i].user.nick + '</p><p class="p-mar-hei">' + $comment[i].add_time + '</p></li>' +
						'<li source_id="2" user_name="' + $comment[i].user.nick + '" user_id="' + $comment[i].user.id + '" inform_reply_id="' + $comment[i].id + '"  class="comment-btn"><img src="images/icon-groupcopy.png"/><span>' + $comment[i].reply.count + '</span></li>' +
						'<li inform_reply_id="' + $comment[i].id + '"  class="praise-btn">' + isLaud + '<span>' + $comment[i].laud + '</span></li></ul>' +
						'<div class="mymargin"><li inform_reply_id="' + $comment[i].id + '" source_id="2" user_name="' + $comment[i].user.nick + '"  user_id="' + $comment[i].user.id + '" class="post-comments-txt">' + $comment[i].content + '</li>' +
						'<li class="post-comments-child-wrap">' +
						twocommentStr +
						'</li>' + moreReplyPlus + '</div></div>';
					$('#InformReplyList').append($commentStr);
				}
				InformDetails.initClick();
				InformDetails.page++;
			
				mui('#pullrefresh').pullRefresh().endPullupToRefresh(false);
				//console.log(InformDetails.page);
			}else {
				if(InformDetails.page == 1) {
					InformDetails.page++;
					$('#notcom').show();
				}
				InformDetails.hackBug = false;
				mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
			}
		});
	},
	//更多二级评论
	commentsReply: function(_this) {
		var inform_reply_id = _this.attr('inform_reply_id');
		var page = _this.attr('page');
		var user_id = _this.attr('user_id');
		var status = true;
		//console.log(page);
		//fnBase.toast('niao ');
		var URL = fnBase.api.Info_InformReplyMore;
		var sendData = {
			'id': inform_reply_id,
			'page': page
		}
		if(status) {
			fnBase.commonAjax(URL, sendData, function(data) {
				if(data.code == 0) {
					if(data.data.plus >= 0) {
						var reply = data.data.data;
						var twocommentStr = '';
						for(var k = 0; k < reply.length; k++) {
							// 回复一楼第一状态2-1 名：ru==pu 同时，父几id相等;//一楼回复自己  
							if(reply[k].reply_user_id == user_id && reply[k].parent_id == inform_reply_id) {
								twocommentStr += '<div class="post-comments-child">' +
									'<p source_id="3" user_name="' + reply[k].nick + '" user_id="' + reply[k].user_id + '" inform_reply_id="' + reply[k].parent_id + '" class="second-reply"><span class="nick-go-individual" user_id="' + reply[k].user_id + '">' + reply[k].nick + '：</span>' +
									reply[k].content + '</p>' +
									'</div>';
								//一楼回复二楼  第二状态 1-2 回名 user_id!=被回复user_id 父userid =user_id;
							} else if(reply[k].user_id == user_id && reply[k].parent_id != inform_reply_id) {
								twocommentStr += '<div class="post-comments-child">' +
									'<p source_id="3" user_name="' + reply[k].nick + '" user_id="' + reply[k].user_id + '" inform_reply_id="' + reply[k].parent_id + '" class="second-reply"><span class="spancolor">回复</span>' +
									'<span user_id="' + reply[k].reply_user_id + '" class="replynick-go-individual">' + reply[k].reply_nick + '：</span>' +
									reply[k].content + '</p>' +
									'</div>';
								//console.log(twocommentStr);
								//其他回复二楼 第四状态3-2 名回明
							} else {
								twocommentStr += '<div class="post-comments-child">' +
									'<p source_id="3" user_name="' + reply[k].nick + '" user_id="' + reply[k].user_id + '" inform_reply_id="' + reply[k].parent_id + '" class="second-reply"><span user_id="' + reply[k].user_id + '"  class="nick-go-individual">' + reply[k].nick + '</span>' +
									'<span class="spancolor">回复</span><span user_id="' + reply[k].reply_user_id + '" class="replynick-go-individual">' + reply[k].reply_nick + '：</span>' +
									reply[k].content + '</p>' +
									'</div>';
								//console.log(twocommentStr);
							}
							//console.log(twocommentStr)
						}
						_this.prev().append(twocommentStr);
						page++
						_this.attr('page', page);
						var plus = data.data.plus == 0 ? '' : '更多<span>' + data.data.plus + '</span>条评论';
						_this.find('li').html(plus);
						if(data.data.plus == 0) {
							_this.remove();
						}
					}else {
						_this.remove();
					}
				}
			});
		}
	},
	//与原生交互跳个人
	goIndividual: function(el) {
		var _this = $(el);
		var nowTime = new Date().getTime();
		var clickTime =_this.attr("ctime");
		if( clickTime != 'undefined' && (nowTime - clickTime < 3000)){
      		return false;
    	}else{
     		_this.attr("ctime",nowTime);
     	}
		//fnBase.toast('跳个人');
		var user_id = _this.attr('user_id');
		user_id = parseInt(user_id);
		if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
			GoToUserDetailInfo(user_id);
		} else if(fnBase.versions.android) {
			window.myObj.IntentSelfCenter(user_id);
		}
	},
	//评论点赞
	CommentsAddLaud: function(_this) {
		var inform_reply_id = _this.attr('inform_reply_id');
		if(!fnBase.isLogin(InformDetails.user_id)) {
			//fnBase.toast('亲！您未登陆');
			if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
				GoToLogin();
			} else if(fnBase.versions.android) {
				window.myObj.toLogin();
			}
			return false;
		};
		var URL = fnBase.api.Info_InformReplyLaud;
		var sendData = {
			"inform_reply_id": inform_reply_id,
			"user_id": InformDetails.user_id
		};
		fnBase.commonAjax(URL, sendData, function(data) {
			if(data.code == 0) {
				_this.children('img').attr("src", "images/icon-zan-After.png");
				_this.children('img').addClass('scaleMagnify');
				var zanNum = parseInt(_this.children('span').html()) + 1;
				_this.children('span').html(zanNum);
			} else {
				fnBase.toast(data.msg)
			}
		});
	},
	//获取原生参数内容 
	getTextareaBox:function(source,parent_id,reply_user_id,reply_user_name,contentVal){
		/*var contentVal=contentVal;  
		var source=source;
		var parent_id =parent_id;
		var reply_user_id=reply_user_id;
		var reply_user_name=reply_user_name;
		var _this=InformDetails.replyThis;
		var content = contentVal;
		content = content.replace(/\n/g, "<br/>");
		content = content.replace(/\s/g, "&nbsp;");
		//inform_id 文章ID ，parent_id 父级ID（1级回复默认为0） content user_id 
			//reply_user_id 被回复者ID（1级回复默认为文章用户ID）
			var URL = fnBase.api.Info_InformReplyAdd;
			var sendData = {
				'inform_id': InformDetails.inform_id,
				'parent_id': parent_id,
				'content': content,
				'user_id': InformDetails.user_id,
				'reply_user_id': reply_user_id
			};
			fnBase.commonAjax(URL, sendData, function(data) {
				if(data.code == 0) {
					$('#post_input').show();
					var str = '';
					var callback_id = data.data.id;
					//console.log(callback_id);
					if(source == 1) {
						str = '<div class="post-cont">' +
							'<ul class="post-cont-user"><li><img user_id="' + InformDetails.user_id + '" class="imgto-individual" src="' + InformDetails.user_img + '"/></li>' +
							'<li><p user_id="' + InformDetails.user_id + '" class="nameto-individual">' + InformDetails.user_name + '</p><p class="p-mar-hei">刚刚</p></li>' +
							'<li source_id="2" user_id="' + InformDetails.user_id + '" user_name="'+InformDetails.user_name+'" inform_reply_id="' + callback_id + '"  class="comment-btn"><img src="images/icon-groupcopy.png"/><span>0</span></li>' +
							'<li inform_reply_id="' + callback_id + '"  class="praise-btn"><img src="images/icon-zan.png"/><span>0</span></li></ul>' +
							'<div class="mymargin"><li inform_reply_id="' + callback_id + '" user_name="'+InformDetails.user_name+'" source_id="2"  user_id="' + InformDetails.user_id + '" class="post-comments-txt">' + content + '</li>' +
							'<li class="post-comments-child-wrap"></li></div></div>';
						$('#InformReplyList').prepend(str);
						InformDetails.initClick();
						$('#notcom').hide();
					} else if(source == 2) {
						str = '<div class="post-comments-child">' +
							'<p source_id="3" user_name="' + InformDetails.user_name + '" user_id="' + InformDetails.user_id + '" inform_reply_id="' + parent_id + '" class="second-reply"><span user_id="' + InformDetails.user_id + '"  class="nick-go-individual">' + InformDetails.user_name + '</span>' +
							'<span class="spancolor">回复</span><span user_id="' + reply_user_id + '" class="replynick-go-individual">' + reply_user_name + '：</span>' +
							content + '</p></div>';
						var myLi = _this.parent().parent().find('.post-comments-child-wrap');
						myLi.append(str);
						InformDetails.initClick();
					
					} else {
						//三级回复
						str = '<div class="post-comments-child">' +
							'<p source_id="3" user_name="' + InformDetails.user_name + '" user_id="' + InformDetails.user_id + '" inform_reply_id="' + parent_id + '" class="second-reply"><span user_id="' + InformDetails.user_id + '"  class="nick-go-individual">' + InformDetails.user_name + '</span>' +
							'<span class="spancolor">回复</span><span user_id="' + reply_user_id + '" class="replynick-go-individual">' + reply_user_name + '：</span>' +
							content + '</p></div>';
						_this.parent().parent().append(str);
						InformDetails.initClick();
					}
				} else {
					fnBase.toast(data.msg);
					
				}

			});*/

	},
	//真输入框
	setUpTextareaBox: function(el) { //输入框盒子
		var _this = $(el);
		if(!fnBase.isLogin(InformDetails.user_id)) {
			//fnBase.toast('亲！您未登陆');
			if(fnBase.versions.ios || fnBase.versions.iPhone || fnBase.versions.iPad) {
				GoToLogin();
			} else if(fnBase.versions.android) {
				window.myObj.toLogin();
			}
			return false;
		};
		InformDetails.replyThis=_this; //回复的this 对象
		var source = _this.attr('source_id'); //判断是几级回复
		var getInformUser = 0; //一级回复的文章user_ID
		var parent_id = source == 1 ? 0 : _this.attr('inform_reply_id');
		var reply_user_id = source == 1 ? getInformUser : _this.attr('user_id');
		var reply_user_name = source == 1 ? InformDetails.user_name : _this.attr('user_name');
		//给原生穿餐
		window.control.showCommentDialog(source,parent_id,reply_user_id,reply_user_name);
		weakupkeyboard(source,parent_id,reply_user_id,reply_user_name);
	},

}
$(document).ready(function(){
	InformDetails.init();
	InformDetails.showMoreBtn = $('#uploadStyle');
});
window.onload=function(){
	var reply_user_name= fnBase.splitURL()['user_name'];
	var reply= fnBase.splitURL()['reply'];
	if(reply==1){
	weakupkeyboard(1,0,0,reply_user_name);
	}
};
